from selenium import webdriver
from selenium.webdriver.chrome.webdriver import WebDriver

driver: WebDriver = webdriver.Chrome()

driver.get("http://baidu.com/")
# 显示源码
print(driver.page_source)
print(driver.current_url)
print(driver.title)